html {
  height: 100%;
  overflow: hidden;
}

body {
  max-width: 750px;
  height: 100%;
  margin: 0 auto;
  overflow: hidden;
  background-color: #333;
}

* {
  border-radius: 0;
}

.advan,
.home,
.mask {
  width: 100%;
}

.background,
.outer,
#game,
.main {
  width: 100%;
  height: 100%;
  position: relative;
  margin: 0;
  border-radius: 0;
}

.panel-heading {
  border-radius: 0;
}
.panel-heading-right {
  top: 10px;
  right: 15px;
  position: absolute;
  display: flex;
  align-items: center;
}
.panel-heading-right > *:not(:last-child) {
  margin-right: 8px;
}

.panel-split,
.panel-close {
  width: 20px;
  height: 20px;
  position: relative;
}

.panel-split::before,
.panel-split::after,
.panel-close::before,
.panel-close::after {
  top: 50%;
  left: 50%;
  content: '';
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background-color: #fff;
  position: absolute;
  transform-origin: center center;
}
.panel-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.panel-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.panel-split::before {
  width: 10px;
  transform: translate(calc(-50% - 3px), -50%) rotate(45deg);
}
.panel-split::after {
  width: 10px;
  transform: translate(calc(-50% + 3px), -50%) rotate(-45deg);
}

body.split-bad .equipMain > .panel-heading .panel-split::before {
  transform: translate(calc(-50% + 3px), -50%) rotate(45deg);
}
body.split-bad .equipMain > .panel-heading .panel-split::after {
  transform: translate(calc(-50% - 3px), -50%) rotate(-45deg);
}

.equipMain {
  float: none;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(100% - 266px);
  position: absolute;
  margin: 0;
  display: flex;
  flex-direction: column;
  transform: translate(100%, 0);
  transition: transform 0.3s;
  z-index: 1000000;
}
.equipMain.open {
  transform: translate(0, 0);
}
.equipMain > .panel-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 10px 12px 40px;
}
.equipMain > .panel-body > #equip {
  flex: 1;
  height: 0;
  width: 100%;
  margin: 0;
  padding: 0;
}
.equipMain > .panel-body > #equip > .boxList {
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.equipMain > .panel-body > #detail {
  margin: 0;
  width: 100%;
}
body.split-bad .equipMain {
  top: auto;
  bottom: 266px;
  height: 180px;
}
body.split-bad .advanMain > .panel-body {
  padding-bottom: 180px;
}

.advanMain {
  float: none;
  margin: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.advanMain > .panel-body {
  flex: 1;
  height: 0;
  overflow: auto;
  position: relative;
  display: flex;
  flex-direction: column;
}

.stateMain {
  margin: 0;
  padding: 12px;
  float: none;
  width: 100%;
  height: auto;
  border-radius: 0;
}
.stateMain > .stateMainTop {
  display: grid;
  grid-template-columns: repeat(auto-fill, 72px);
  justify-content: space-between;
  gap: 10px;
}
.stateMain .stateVector {
  margin: 0;
}
.stateMain > .detail {
  float: none;
  margin: 0;
  width: 100%;
  margin-bottom: 12px;
}

.advanOuter {
  flex: 1;
  width: 100%;
  padding: 12px;
  box-sizing: border-box;
}

.detail {
  padding: 8px 10px;
}
.detailHead {
  margin: 0;
}

.menuOuter {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  position: fixed;
  background-color: rgba(0, 0, 0, .5);
  box-sizing: border-box;
  padding: 12px;
  padding-top: 120px;
  display: flex;
  justify-content: center;
}
.menuInner {
  height: auto;
}
.menu {
  width: 100%;
}

.skillMenu > .skill {
  margin: 0;
  width: calc(50% - 5px);
  height: 300px;
  box-shadow: none;
  border-radius: 0;
}
.skillMenu > .skill:first-child {
  float: left;
}
.skillMenu > .skill:last-child {
  float: right;
}

.time {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}
.time > .season {
  margin: 0;
  margin-right: 4px;
  font-size: 12px;
}
.time > .date {
  font-size: 12px;
  margin: 0 2px;
}
.time > .weatherBox {
  width: 14px;
  height: 14px;
  box-shadow: 1px 1px 1px rgba(0,0,0,0.3);
  margin-left: 2px;
}

.branch {
  width: 100%;
  margin: 0;
}
.oppo {
  width: 100%;
  margin: 0;
  margin-top: 12px;
  overflow: auto;
}
.advan {
  max-height: none;
  overflow: auto;
}

.tableOuter {
  margin: 0;
  max-height: none;
}

.bigBox {
  width: 100%;
}

.resourceName {
  display: block;
}

.setting-menu {
  padding: 24px;
}
.setting-menu > .btn {
  width: 140px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
}
.setting-menu > *:not(:last-child) {
  margin-bottom: 8px;
}
